package com.huawei.appmarket.service.store.awk.node;

import android.content.Context;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.view.ViewGroup.LayoutParams;
import com.huawei.appmarket.service.store.awk.card.AppZoneTraceInfoCard;
import o.cdr;
import o.cgz;
import o.chy;
import o.cih;
import o.eir;
import o.ewm.h;

public class AppZoneAppTraceNode extends cdr {
    public AppZoneAppTraceNode(Context context) {
        super(context, 1);
    }

    public boolean ˊ(ViewGroup viewGroup, ViewGroup viewGroup2) {
        View inflate = LayoutInflater.from(this.ॱ).inflate(h.ᐧ, null);
        cih appZoneTraceInfoCard = new AppZoneTraceInfoCard(this.ॱ);
        appZoneTraceInfoCard.ˏ(inflate);
        ˊ(appZoneTraceInfoCard);
        LayoutParams layoutParams = new LayoutParams(-1, -2);
        viewGroup.setPadding(0, 0, 0, 0);
        viewGroup.addView(inflate, layoutParams);
        return true;
    }

    public void ˋ(chy o_chy) {
        for (int i = 0; i < ˊॱ(); i++) {
            cgz ˊ = ˊ(i);
            if (ˊ instanceof AppZoneTraceInfoCard) {
                AppZoneTraceInfoCard appZoneTraceInfoCard = (AppZoneTraceInfoCard) ˊ;
                appZoneTraceInfoCard.ˊ().setOnClickListener(new eir(o_chy, ˊ, 0));
            }
        }
    }
}
